package mediator;

/**
 * 具体同事类 - 电视
 */
public class TV extends Device {
    public TV(String name, SmartHomeMediator mediator) {
        super(mediator);
        mediator.register(name, this);
    }

    public void open() {
        System.out.println("打开电视");
    }

    public void close() {
        System.out.println("关闭电视");
    }
}
